home *** CD-ROM | disk | FTP | other *** search
-
- Sub Outlines (FormName As Form)
-
- Dim drkgray As Long
- Dim fullwhite As Long
- Dim i As Integer
- Dim ctop As Integer
- Dim cleft As Integer
- Dim cright As Integer
- Dim cbottom As Integer
- Dim Offset As Integer
-
- On Error Resume Next
-
- Dim cName As Control
- Offset = 0
-
- FormName.Cls
-
- drkgray = RGB(128, 128, 128)
- fullwhite = RGB(255, 255, 255)
-
- For i = 0 To (FormName.Controls.Count - 1)
-
- Set cName = FormName.Controls(i)
-
- If TypeOf cName Is Menu Then
-
- GoTo SkipThisControl
-
- End If
-
-
- If (UCase(cName.Tag) = "OL") Then
-
- ctop = cName.Top - Screen.TwipsPerPixelY
- cleft = cName.Left - Screen.TwipsPerPixelX
- cright = cName.Left + cName.Width + (Screen.TwipsPerPixelX * Offset)
- cbottom = cName.Top + cName.Height + (Screen.TwipsPerPixelY * Offset)
-
- FormName.Line (cleft, ctop)-(cright, ctop), drkgray
- FormName.Line (cleft, ctop)-(cleft, cbottom), drkgray
- FormName.Line (cleft, cbottom)-(cright, cbottom), fullwhite
- FormName.Line (cright, ctop)-(cright, cbottom), fullwhite
-
- End If
-
- SkipThisControl:
-
- Next i
-
- End Sub
-
-